while loop in python for do you want to continue

39

while input("Do You Want To Continue? [y/n]") == "y":
    # do something
    print("doing something")
while True:
    # some code here
    if input('Do You Want To Continue? ') != 'y':
        break

Comments

Submit
0 Comments